<!--
  @author heguanghua
  @since 2019/06/12 11:57
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >
        <tr>
            <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
            <th lay-data="{field:'serviceAreaId', width:80, unresize:true, align:'center'}">ID</th>
            <th lay-data="{field:'provinceId', unresize:true, align:'left'}">省份</th>
            <th lay-data="{field:'cityId', width:150, unresize:true, align:'left'}">城市</th>
            <th lay-data="{field:'countryId', width:150, unresize:true, align:'left'}">区县</th>
            <th lay-data="{field:'mapdata', width:200, unresize:true, align:'left'}">地图数据</th>
            <th lay-data="{field:'creater', width:100, unresize:true, align:'left'}">创建人</th>
            <th lay-data="{field:'createTime', width:100, unresize:true, align:'left'}">创建时间</th>
            <th lay-data="{field:'updater', width:100, unresize:true, align:'left'}">编辑人</th>
            <th lay-data="{field:'updateTime', width:150, unresize:true, align:'center'}">编辑时间</th>
            <th lay-data="{field:'操作', width:350, unresize:true, align:'center', fixed:'right'}">操作</th>
        </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <td></td>
            <td th:text="${item.serviceAreaId}"></td>
            <td th:text="${item.provinceName}"></td>
            <td th:text="${item.cityName}"></td>
            <td th:text="${item.countryName}"></td>
            <td th:text="${item.mapData}"></td>
            <td th:text="${item.creater}"></td>
            <td th:text="${#dates.format(item.createTime, 'yyyy-MM-dd')}"></td>
            <td th:text="${item.updater}"></td>
            <td th:text="${#dates.format(item.updateTime, 'yyyy/MM/dd HH:mm:ss')}"></td>
            <td>
                <a class="layui-btn layui-btn-sm" th:if="${#authPermit.checkPermit('/channel/serviceArea/serviceCategory/addEditView.action')}" th:lay-href="|/channel/service/area/serviceCategory.action?serviceAreaId=${item.serviceAreaId}&showType=2&addFlag=${addFlag}|" lay-text="开通前台分类">开通前台分类</a>
<!--                <a class="layui-btn layui-btn-sm" th:if="${#authPermit.checkPermit('/channel/serviceArea/serviceCategory/addEditView.action')}" th:lay-href="|/channel/service/area/serviceCategory.action?serviceAreaId=${item.serviceAreaId}&showType=1&addFlag=${addFlag}|" lay-text="后台开通分类">后台开通分类</a>-->
                <a class="layui-btn layui-btn-sm" th:if="${#authPermit.checkPermit('/channel/serviceArea/drawMap/addEditView.action')}" th:lay-href="|/channel/service/area/drawMap.action?serviceAreaId=${item.serviceAreaId}&addFlag=${addFlag}|" lay-text="地图范围">地图范围</a>
            </td>
        </tr>
    </tbody>
</table>
